<template>
  <table class="box">
    <thead>
      <tr>
        <td class="one"><input type="checkbox" /></td>
        <td>及时达</td>
        <td></td>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td rowspan="3" class="one"><input type="checkbox" /></td>
        <td rowspan="3" class="tupian">
          <img src="@/assets/fenlei/o33.jpg" alt="" />
        </td>
        <td>沙漠蜜瓜</td>
      </tr>
      <tr>
        <td>
          <div class="xiala">
            <van-cell is-link @click="showPopup">1个约1.6kg</van-cell>
            <van-popup
              v-model="show"
              round
              position="bottom"
              :style="{ height: '50%' }"
            >
              <div>
                <div class="small">
                  <div class="tu">
                    <img src="@/assets/fenlei/o33.jpg" alt="" />
                  </div>
                  <div class="js">
                    <span>沙漠蜜瓜</span>
                    <p class="jg">
                      <span>￥27.5</span>
                      <span
                        ><img src="@/assets/gouwu/xinxiang.png" alt=""
                      /></span>
                    </p>
                  </div>
                </div>
                <p class="sanwu">
                  <span>&nbsp;服务保障</span>
                  <span>三无退货·称重退差价&nbsp;</span>
                </p>
                <p class="gg">规格</p>
                <p class="sl">
                  <span>半个/约800g</span>
                  <span>1个/约1.6kg</span>
                  <span>1个/约1.3kg</span>
                </p>
                <div class="goumai">
                  <span>购买数量</span>
                  <span>
                    <input type="text" value="-" size="1">
                    <button>1</button>
                    <input type="text" value="+" size="1">
                  </span>
                </div>
                  <button class="queding">确定</button>
              </div>
            </van-popup>
          </div>
        </td>
      </tr>
      <tr>
        <td class="xiangjie">
          <div class="jg">
            <span>￥</span>
            <span>27.5</span>
          </div>
          <div>
            <button>-</button>
            <input type="text" value="0" class="shuliang" />
            <button>+</button>
          </div>
        </td>
      </tr>
    </tbody>
  </table>
</template>

<script>
export default {
  data() {
    return {
      show: false,
    };
  },

  methods: {
    showPopup() {
      this.show = true;
    },
  },
};
</script>

<style scoped>
.box {
  margin-top: 0.4rem;
  width: 96%;
  min-height: 1.3rem;
  background: rgb(240, 240, 240);
  margin-left: 0.06rem;
  border-radius: 0.1rem;
}

.shuliang {
  width: 0.3rem;
  border: none;
  text-align: center;
}
button {
  background: rgb(239, 239, 239);
  width: 0.2rem;
  border: none;
}
.one {
  text-align: center;
}
.xiangjie {
  display: flex;
  justify-content: space-between;
}
img {
  width: 0.7rem;
}
.tupian {
  text-align: center;
}
tbody {
  height: 0.8rem;
}
select {
  width: 1.5rem;
  border: none;
  background: rgb(224, 224, 224);
}
.van-cell {
  width: 1.8rem;
  height: 0.3rem;
  line-height: 0.1rem;
  font-size: 0.12rem;
  background: rgb(224, 224, 224);
}
.van-cell__value {
  height: 0.2rem;
}
.van-icon {
  line-height: 0.15rem;
}
.tu {
  border: 1px solid gray;
  width: 0.7rem;
  height: 0.7rem;
}
.small {
  width: 3rem;
  display: flex;
  margin-left: 0.1rem;
  margin-top: 0.1rem;
}
.js span:nth-child(1) {
  margin-left: 0.1rem;
}

.js .jg {
  padding-top: 0.27rem;
}
.js .jg span:nth-child(1) {
  color: red;
  margin-right: 0.1rem;
}
.sanwu {
  width: 96%;
  height: 0.3rem;
  line-height: 0.3rem;
  background: rgb(224, 224, 224);
  margin-left: 0.08rem;
  border-radius: 0.05rem;
  margin-top: 0.1rem;
  font-size: 0.14rem;
}
.sanwu span:nth-child(2) {
  float: right;
}
.gg{
  padding-left: .1rem;
  margin-top: .2rem;
}
.sl {
  height: 0.3rem;
  margin-top: .1rem;
  padding-left: .1rem;
  font-size: 14px;
  border-bottom: 1px solid gray;
}
.sl span {
  display: inline-block;
  width: 0.9rem;
  background: rgb(235, 235, 235);
  text-align: center;
  border-radius: .15rem;
}
.goumai{
  margin-top: .15rem;
  margin-left: .1rem;
  
}
.goumai span:nth-child(2){
  float: right;
  padding-right: .1rem;
}
.goumai input{
    width: .2rem;
}
.goumai input,button{
  width: .2rem;
  border: none;
  text-align: center;
  background: rgb(235, 235, 235);
}
.queding{
  width: 3.3rem;
  height: .4rem;
  background: rgb(71,170,76);
  border-radius: .2rem;
  margin-top: .3rem;
  margin-left: .23rem;
}
</style>